package mx.netbrain.action;

import java.util.Properties;

import mx.netbrain.util.NetBrainUtils;

import com.opensymphony.xwork2.ActionSupport;

public class WebAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String webProtocolo;
	private String webDominio;
	private String webPuerto;
	private String webAplicacion;
	private String webServicio;

	public String execute() {
		Properties prop = new Properties();
		prop = NetBrainUtils.leerPropertiesConfig();
		webProtocolo = prop.getProperty("app_protocol");
		webDominio = prop.getProperty("app_host");
		webPuerto = prop.getProperty("app_port");
		webAplicacion = prop.getProperty("app_name");
		webServicio = prop.getProperty("external_search_url");
		return SUCCESS;
	}

	public String getWebProtocolo() {
		return webProtocolo;
	}

	public void setWebProtocolo(String webProtocolo) {
		this.webProtocolo = webProtocolo;
	}

	public String getWebDominio() {
		return webDominio;
	}

	public void setWebDominio(String webDominio) {
		this.webDominio = webDominio;
	}

	public String getWebPuerto() {
		return webPuerto;
	}

	public void setWebPuerto(String webPuerto) {
		this.webPuerto = webPuerto;
	}

	public String getWebAplicacion() {
		return webAplicacion;
	}

	public void setWebAplicacion(String webAplicacion) {
		this.webAplicacion = webAplicacion;
	}

	public String getWebServicio() {
		return webServicio;
	}

	public void setWebServicio(String webServicio) {
		this.webServicio = webServicio;
	}

}
